<script setup lang="ts">
/** @format */

import { User } from '@/apis'
import { ref } from 'vue'
import { useUserStore } from '@/store/User'
const count = ref(0)
count.value = 10

const clickMethod = () => {
	User.GetOrderCount({ age: '1', bge: '11' })
}
const login = () => {
	User.Login({ account: 'admin', md5Password: '1b2a0f5c93d7bb78e1473bc13bb157d0' }).then((res) => {
		const { token } = res.data
		useUserStore().SET_TOKEN(token)
	})
}
</script>

<template>
	<img src="" >
	<h1>登录页面{{ count }}</h1>
	<el-button @click="clickMethod">I am ElButton</el-button>
	<el-button @click="login">登录</el-button>
</template>

<style lang="scss">
.a {
	padding: 0;
}
</style>
